<template>
    <view>
        <view v-if="propData.length > 0" class="icon-nav-list">
            <view v-for="(item, index) in propData" :key="index" class="item">
                <view class="item-content" :data-value="item.event_value" :data-type="item.event_type" @tap="navigation_event"><!--:style="'background-color:' + (item.bg_color || '#fff')"-->
                    <image :src="item.images_url" mode="aspectFit"></image>
                </view>
                <view class="title">{{item.name}}</view>
            </view>
        </view>
    </view>
</template>
<script>
    const app = getApp();

    export default {
        data() {
            return {};
        },
        components: {},
        props: {
            propData: Array
        },
        methods: {
            navigation_event(e) {
				console.log(e);
                app.globalData.operation_event(e);
            }
        }
    };
</script>
<style>
    .icon-nav-list {
        overflow: hidden;
        margin: 30rpx 0px 20rpx 0px;
		padding: 20rpx 0;
		background-color: #fff;
		border-radius: 10px;
    }
    .icon-nav-list .item {
        width: calc(25% - 20rpx);
        float: left;
        padding: 20rpx 10rpx 20rpx 10rpx;
        /* #ifdef H5 */
        cursor: pointer;
        /* #endif */
    }
    .icon-nav-list .item .item-content {
        /* border-radius: 50%; */
        /* padding: 20rpx; */
        text-align: center;
        width: 117rpx;
        height: 117rpx;
        margin: 0 auto;
      /*  -webkit-box-shadow: 0 2px 12px rgb(226 226 226 / 95%);
        box-shadow: 0 2px 12px rgb(226 226 226 / 95%); */
    }
    .icon-nav-list .item image {
        width: 117rpx !important;
        height: 117rpx !important;
    }
    .icon-nav-list .item .title {
        margin-top: 6rpx;
        font-size: 30rpx;
        text-align: center;
        max-width: 100%;
        color: #888;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		min-height: 76rpx;
		line-height: 38rpx;
		white-space: initial;
    }
</style>